package cn.kgc.tangcco.tcbd1011.no13.vehiclebrand.service.impl;

import java.util.List;

import cn.kgc.tangcco.tcbd1011.no13.base.properties.factory.PropertiesFactory;
import cn.kgc.tangcco.tcbd1011.no13.base.util.Utils;
import cn.kgc.tangcco.tcbd1011.no13.vehiclebrand.dao.VehicleBrandDao;
import cn.kgc.tangcco.tcbd1011.no13.vehiclebrand.entity.VehicleBrand;
import cn.kgc.tangcco.tcbd1011.no13.vehiclebrand.service.VehicleBrandService;

public class VehicleBrandServiceImpl implements VehicleBrandService {

	private VehicleBrandDao dao;
	public VehicleBrandServiceImpl() {
		dao = (VehicleBrandDao) PropertiesFactory.getInstance(Utils.VEHICLEBRANDDAO);
	}
	@Override
	public int addVehicleBrand(VehicleBrand vehiclebrand) {
		return dao.addVehicleBrand(vehiclebrand);
	}

	@Override
	public int updateVehicleBrand(VehicleBrand vehiclebrand) {
		return dao.updateVehicleBrand(vehiclebrand);
	}

	@Override
	public int deleteVehicleBrand(int pk) {
		return dao.deleteVehicleBrand(pk);
	}

	@Override
	public List<VehicleBrand> queryAllVehicleBrand() {
		return dao.queryAllVehicleBrand();
	}

	@Override
	public VehicleBrand detailVehicleBrand(int pk) {
		return dao.detailVehicleBrand(pk);
	}

	@Override
	public long queryCountVehicleBrand() {
		return dao.queryCountVehicleBrand();
	}
	@Override
	public List<VehicleBrand> queryAllToVehicletype() {
		return dao.queryAllToVehicletype();
	}
	@Override
	public List<VehicleBrand> queryAllToVehicle() {
		return dao.queryAllToVehicle();
	}

}
